CREATE TABLE IF NOT EXISTS `{$tableName}` (
      `document_id` int(11) NOT NULL AUTO_INCREMENT,
	  `document_uid` int(11) NOT NULL default '0',
	  `document_model` varchar(50) NULL,
	  `document_author` varchar(50) NULL,
	  `document_creationdate` datetime,
	  `document_modificationdate` datetime,
	  `document_publicationstatus` varchar(50) {$defaultStatus},
	  `document_lang` varchar(5) NULL,
	  `document_revision` int(11) NULL,
	  `document_startpublicationdate` datetime,
	  `document_endpublicationdate` datetime,
	  `document_label` varchar(255) NULL,
{$fields}
      KEY (`document_id`),
      PRIMARY KEY (`document_uid`),
      FOREIGN KEY (`document_uid`) REFERENCES `f_document`(`document_uid`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci;